<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
<title>{config:SystemName} {config:Ver}</title>
<script src="/js/lib/SpryMenuBar.js" type="text/javascript"></script>
<script type="text/javascript" src="/js/lib/prototype.js"></script>
<script type="text/javascript" src="/js/src/scriptaculous.js"></script>
<script type="text/javascript" src="/js/admin/v2.5.js"></script>

<link href="/css/admin/v1.css" rel="stylesheet" type="text/css" />
<style type="text/css">
html, body {
	overflow:hidden;
	padding:1px;
}
ul,li{
	padding:0;
	margin:0;
	font-size:12px;
}
#QuickMenu {
	border:1px solid #eee;
	height:20px;
	padding:2px;
	background-color:#f7f7f7;
	border-bottom-color: #ccc;
	overflow:hidden;
}
#QuickMenu li {
	float:left;
	margin-right:4px;
}
#QuickMenu li select{
	font-size:12px;
}
#QuickMenu li a{
	color:#666;
	display:block;
	text-decoration:none;
	padding:2px 6px 2px 6px;
	line-height:16px;
	background-repeat:no-repeat;
	background-color:#fff;
}
#QuickMenu li.qitem a.ico{
	padding:2px 6px 2px 22px;
	background-position:4px center; background-repeat:no-repeat
}
#QuickMenu li.qitem a.disabled{
	color:#999;
	cursor:default;
}
#QuickMenu li.qitem a:hover{
	border-color: #F60;
	background-color:#F60;
	color:#FFF;
}
#QuickMenu li.hover{
	border-right:2px solid #900;
}
#delete{
	float:left;
}
#delete.hover{
	border:1px solid #CCC;
	background-color:#FFC;
}
</style>
</head>
<body>
<div id="Main">
  <div id="Status">
    <city_list>StatusUpdater</city_list>
  </div>
  <city_list param="SysMenuBar">SysMenu</city_list>
  <ul id="QuickMenu"><city_list>QuickMenu</city_list></ul>
  <iframe id="iWindow" src="HomePage.html" name="iWindow" frameborder="0" marginheight="0" marginwidth="0" scrolling="yes"></iframe>
</div>
<script type="text/javascript">
<!--
function doLogin(){
	if(confirm("是否确定重新登录系统!?    "))
		location.href='/logout.html?toUrl=/login.html';
}
function doExit(){
	if(confirm("是否确定退出系统!?    "))
		top.close();
}
var MenuBar1 = new Spry.Widget.MenuBar("SysMenuBar");
function resizeWindow(){
	var quickHeight=($('QuickMenu')==null)?0:Element.getHeight('QuickMenu');
	$('iWindow').height=Element.getHeight(document.body)-Element.getHeight('SysMenuBar')-quickHeight;
	$('Status').style.left=Element.getWidth(document.body)-Element.getWidth('Status');
}
window.onresize=resizeWindow;

function myTitle(text){
	document.title = text+'_{admin:cDescription}({admin:cacccode}) -- {config:SystemName} {config:Ver}';
}
resizeWindow();
/*var myAjax = new Ajax.PeriodicalUpdater(
		'Status',
		location.pathname,
		{
			parameters:'f=StatusUpdater&timespan='+Math.random(),
			requestHeaders:{HTTP_X_XMLHTTP_MODE:'true'},
			method:'get',
			evalScripts:true,
			frequency:5,
			decay:1
		});*/
/*
function qucikMenuSort(){
	Sortable.destroy('QuickMenu');
	Sortable.create('QuickMenu', {hoverclass:'hover', 
									only:'qitem',
									constraint: 'horizontal',
									overlap:'horizontal',
									ghosting:true,
									dropOnEmpty:true
									,onUpdate:quickMenuUpdate});
}					
qucikMenuSort();
function quickMenuUpdate(sortable){
	//alert(Sortable.serialize(sortable))
}

Droppables.add('delete', { 
   accept: 'qitem',
   hoverclass: 'hover',
   onDrop: function(item,e) {
   		if(TabManage.prototype.doConfirmCmd('QuickMenuDelete',{title:item.innerText,query:'id='+item.value})==1){
			TabManage.prototype.loadContent('QuickMenu','QuickMenu',null,false);
			qucikMenuSort();
	   }
	}
});*/
//-->
</script>
</body>
</html>
